feat: add react native web support#13
Conversation
c309c37 to
bd56e18
Compare
|
@Robert27 thank you for your contribution. Can you please highlight in a comment here the differences in implementation between the two and the reasoning for explicit support for React Native Web? |
|
React Native Web has become increasingly popular, especially since Expo Web. The Bluesky web app, for example, is written with React Native Web. Specifically, I need this feature for my team, and I read the request in the discord. However, this SDK does not yet support the web platform. Implementing it turned out to be a bit more complicated, as different philosophies were chosen between native and web. |
|
I can absolutely relate on this PR. |
|
I have added all the desired changes and the web functionality is now opt-in. I was also able to solve all issues with the tests and also added new ones. In addition I also updated the documentation in the readme accordingly. My team is already using my fork in production and everything works without any problems. |
|
Any updates? Is Aptabase still maintained? |
|
Hey @Robert27 This was off my radar. Sorry about it. |
|
Nice to hear! I will fix the merge conflicts later today :) |
3a0b3bf to
8f9b271
Compare
|
here we go :) |
Prevent unhandled rejections from fire-and-forget web sends, only run batch flush polling for the native dispatcher, and document appVersion for React Native Web in the README. Co-authored-by: Cursor <cursoragent@cursor.com>
Added support for react native web by adapting the dispatcher behavior from
aptabase-js.Resolves #12